//useContext 对应的数据文件
import React from "react";
export const themes = {
    light: {
        color: "skybule",
        background: "#ffcc11"
    },
    dark: {
        color: "red",
        background: "#fff"
    }
}
//创建上下文  调用react 的createContext方法 将themes数据存进去
export const ThemeContext = React.createContext(themes)